/**
 * 会员积分service 接口
 */
package com.p2p.front.service;

import java.util.List;
import java.util.Map;

import com.p2p.base.page.PageVo;
import com.p2p.front.dal.model.MemberPoint;
import com.p2p.front.dal.model.MemberPointLog;

/**
 * @author ruiqi
 *
 */
public interface MemberPointService {

	/**
	 * 累加积分
	 * 
	 * @param userId
	 * @param point
	 * @param type 
	 * @return
	 */
	public boolean cumulative(String userId,int point,MemberPointLog.TypeEnum type);
	
	
	
	/**
	 * 获取会员积分model
	 * 
	 * @param userId
	 * @return
	 */
	public MemberPoint getUserMemberPoint(String userId);
	
	
	
	/**
	 * 显示积分流水
	 * @param form
	 * @return
	 */
	PageVo listPage(PageVo form);
	
	/**
	 * 显示所有用户的积分
	 * @param form
	 * @return
	 */
	PageVo listAllUserPoint(PageVo form);
	
	Map<String,MemberPoint> queryByUserIdList(List<String> userIdList);
	
	public void update(MemberPoint memberPoint);
	
}
